<html>
	<HEAD>
	<meta charset="utf-8">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	</HEAD>
<script src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="${request.contextPath}/jquery/delete.js"></script>
<body>
<div id="list" align="center">
	<table border="1">
		<tr >
			<td align="center">标号</td>
			<td align="center">用户名</td>
			<td align="center">年龄</td>
			<td align="center">日期</td>
			<td align="center">地址</td>
			<td colspan="3" align="center">操作</td>
		</tr>
		<#list userlist as user>
		<tr id=${user.id}>
			<td align="center">${user.id}</td>
			<td align="center">${user.name}</td>
			<td align="center">${user.age}</td>
			<td align="center">${user.birth?string('yyyy-MM-dd')}</td>
			<td align="center">${user.address}</td>
			<td align="center"><a onclick="doDelete(${user.id})" href="javascript:void(0)">删除</a></td>
			<td align="center"><a onclick="doUpdate(${user})" href="javascript:void(0)">修改</a></td>
			<td align="center"><a onclick="doSearch(${user.id})" href="javascript:void(0)">查看</a></td>	
		</tr>
		</#list>
		<tr>
			<td colspan="2" align="center" ><a onclick="doFirst(1)" href="javascript:void(0)">首页</a></td>
			<td colspan="2" align="center"><a onclick="doProvious()" href="javascript:void(0)">上一页</a></td>
			<td align="center"><a onclick="doNext()" href="javascript:void(0)">下一页</a></td>
			<td colspan="3" align="center"><a onclick="doLast()" href="javascript:void(0)">末页</a></td>
		</tr>
	</table>
</div>
<h1 align="center">添加/修改</h1>
<div id="list" align="center">
	<form action="${request.contextPath}/addUser" method="post" >
			       用户名:<input type="text" name="name"><br/>
				年龄:<input type="text" name="age"><br/>
				生日:<input type="text" name="birth" id="birth"><br/><span></span>
				地址:<input type="text" name="address"><br/>
					<input type="submit" value="提交">
	</form>
</div>
<#include "/footer.ftl">